.dialog-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 13000;
    visibility: hidden;
    opacity: 0;
    -webkit-transition-duration: 400ms;
    transition-duration: 400ms;
}
.dialog-backdrop.not-animated {
  -webkit-transition-duration: 0ms;
  transition-duration: 0ms;
}
.dialog-backdrop.backdrop-in {
  visibility: visible;
  opacity: 1;
}
.dialog {
  position: absolute;
  z-index: 13500;
  left: 50%;
  margin-top: 0;
  top: 50%;
  overflow: hidden;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0) scale(1.185);
  transform: translate3d(0, 0, 0) scale(1.185);
  -webkit-transition-property: opacity, -webkit-transform;
  transition-property: opacity, -webkit-transform;
  transition-property: transform, opacity;
  transition-property: transform, opacity, -webkit-transform;
  display: none;
  -webkit-transition-duration: 400ms;
  transition-duration: 400ms;
}
.dialog.modal-in {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}
.dialog.modal-out {
  opacity: 0;
  z-index: 13499;
}
.dialog.not-animated {
  -webkit-transition-duration: 0ms;
  transition-duration: 0ms;
}
.dialog-inner {
  position: relative;
}
.dialog-title {
  font-weight: 500;
}
.dialog-buttons {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.dialog-buttons-vertical .dialog-buttons {
  display: block;
  height: auto !important;
}
.dialog-no-buttons .dialog-buttons {
  display: none;
}
.dialog-input-field {
  position: relative;
}
.dialog-input-field .item-input-wrap {
  margin: 0;
  padding: 0;
}
.dialog-input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  margin-top: 15px;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  display: block;
  font-family: inherit;
  -webkit-box-shadow: none;
  box-shadow: none;
}
html.with-modal-dialog .page-content {
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}
.dialog {
  width: 270px;
  margin-left: -135px;
  text-align: center;
  border-radius: 13px;
  color: #000;
}
.dialog.modal-out {
  -webkit-transform: translate3d(0, 0, 0) scale(1);
  transform: translate3d(0, 0, 0) scale(1);
}
.dialog-inner {
  padding: 15px;
  border-radius: 13px 13px 0 0;
  background: rgba(255, 255, 255, 0.95);
}
.dialog-inner:after {
  content: '';
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  display: block;
  z-index: 15;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}
.ios.device-pixel-ratio-2 .dialog-inner:after {
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
}
.ios.device-pixel-ratio-3 .dialog-inner:after {
  -webkit-transform: scaleY(0.33);
  transform: scaleY(0.33);
}
.dialog-title {
  font-size: 18px;
  text-align: center;
  font-weight: 600;
}
.dialog-title + .dialog-text {
  margin-top: 5px;
}
.dialog-buttons {
  height: 44px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.dialog-button {
  width: 100%;
  padding: 0 5px;
  height: 44px;
  font-size: 17px;
  line-height: 44px;
  text-align: center;
  color: #007aff;
  display: block;
  position: relative;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  background: rgba(255, 255, 255, 0.95);
}
.dialog-button:first-child {
  border-radius: 0 0 0 13px;
}
.dialog-button:last-child {
  border-radius: 0 0 13px 0;
}
.dialog-button:last-child:after {
  display: none !important;
}
.dialog-button:first-child:last-child {
  border-radius: 0 0 13px 13px;
}
.dialog-button.dialog-button-bold {
  font-weight: 500;
}
.dialog-button.active-state {
  background: rgba(230, 230, 230, 0.95);
}
.dialog-buttons-vertical .dialog-buttons {
  height: auto;
}
.dialog-buttons-vertical .dialog-button {
  border-radius: 0;
}
.dialog-buttons-vertical .dialog-button:last-child {
  border-radius: 0 0 13px 13px;
}
.dialog-buttons-vertical .dialog-button:last-child:after {
  display: none !important;
}
.dialog-button:after {
  content: '';
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  display: block;
  z-index: 15;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  width: 1px;
  height: 100%;
  -webkit-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
}
.ios.device-pixel-ratio-2 .dialog-button:after {
  -webkit-transform: scaleX(0.5);
  transform: scaleX(0.5);
}
.ios.device-pixel-ratio-3 .dialog-button:after {
  -webkit-transform: scaleX(0.33);
  transform: scaleX(0.33);
}
.dialog-buttons-vertical .dialog-button:after {
  content: '';
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  display: block;
  z-index: 15;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}
.ios.device-pixel-ratio-2 .dialog-buttons-vertical .dialog-button:after {
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
}
.ios.device-pixel-ratio-3 .dialog-buttons-vertical .dialog-button:after {
  -webkit-transform: scaleY(0.33);
  transform: scaleY(0.33);
}
.dialog-no-buttons .dialog-inner {
  border-radius: 13px;
}
.dialog-no-buttons .dialog-inner:after {
  display: none !important;
}
.dialog-input-field {
  margin-top: 15px;
}
.dialog-input-field .item-input-wrap {
  margin: 0;
}
.dialog-input {
  height: 26px;
  background: #fff;
  padding: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 14px;
}
.dialog-input + .dialog-input {
  margin-top: 5px;
}
.dialog-input-double + .dialog-input-double {
  margin-top: 0;
}
.dialog-input-double + .dialog-input-double .dialog-input {
  border-top: 0;
  margin-top: 0;
}
.dialog-preloader .dialog-title ~ .preloader,
.dialog-preloader .dialog-text ~ .preloader {
  margin-top: 5px;
}
.dialog-preloader .preloader {
  width: 34px;
  height: 34px;
}
.dialog-progress .dialog-title ~ .progressbar,
.dialog-progress .dialog-text ~ .progressbar,
.dialog-progress .dialog-title ~ .progressbar-infinite,
.dialog-progress .dialog-text ~ .progressbar-infinite {
  margin-top: 15px;
}
.dialog-button.color-red {
  color: #ff3b30;
}
.dialog-button.color-green {
  color: #4cd964;
}
.dialog-button.color-blue {
  color: #007aff;
}
.dialog-button.color-pink {
  color: #ff2d55;
}
.dialog-button.color-yellow {
  color: #ffcc00;
}
.dialog-button.color-orange {
  color: #ff9500;
}
.dialog-button.color-gray {
  color: #8e8e93;
}
.dialog-button.color-white {
  color: #ffffff;
}
.dialog-button.color-black {
  color: #000000;
}